package cn.teduo;

import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;


public class dou24 {
    public static void main(String[] args) {
        list();
    }

    private static void list() {
        LinkedList<Integer> list = new LinkedList<Integer>();
        Collections.addAll(list,1,2,3,4,5);
        list.add(5);
        list.add(9);
        list.add(3);
        list.add(6);
        list.add(2);
        System.out.println(list);
    }
}
